<%  if @session_expired
  theLink = link_to(t('login.log_in_again'), :controller => "login", :action => "login")
  message = I18n.t('login.session_time_out', :link => theLink)
  theHtml = escape_javascript(content_tag(:div, message.html_safe, :"class" => "warning"))
  -%>
  $('nav.navbar').hide();
  $('div#content').html('<%=theHtml%>');
  refresh_page(); // refresh the page. if it fails, the message above remains
<%  end -%>
